﻿@using Qcy.Jshj.Web.Helpers
@{
    var action = Request.RequestContext.RouteData.Values["action"];
}
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title - @Qcy.Jshj.Web.Helpers.ApplicationTag.GetTag("jiashijia")</title>
    <meta name="Keywords" content="" />
    <meta name="Description" content="" />
    <link href="~/Content/css/reset.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/css/news.css" rel="stylesheet" type="text/css" />
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script src="~/Scripts/common.js"></script>
</head>
<body>
    <div class="wrapper">
        <div class="top">
            <div class="top_site">
                @if (DataHelper.IsChinese)
                { 
                    <a href="/Home/Language?language=cn&returnUrl=@Request.Url.AbsoluteUri">
                        <img src="~/Content/images/new_top_cn_select.gif" alt="中文" /></a>
                    <a href="/Home/Language?language=en&returnUrl=@Request.Url.AbsoluteUri">
                        <img src="~/Content/images/new_top_en.gif" alt="English" /></a>
                }
                else
                {
                    <a href="/Home/Language?language=cn&returnUrl=@Request.Url.AbsoluteUri">
                        <img src="~/Content/images/new_top_cn.gif" alt="中文" /></a>
                    <a href="/Home/Language?language=en&returnUrl=@Request.Url.AbsoluteUri">
                        <img src="~/Content/images/new_top_en_select.gif" alt="English" /></a>
                }
            </div>
            <a class="logo" href="/">
                <img src="~/Content/images/news_logo.gif" alt="@Qcy.Jshj.Web.Helpers.ApplicationTag.GetTag("jiashijia")" />
            </a>
            <div class="top_nav" id="menu">
                <ul id="top_nav_list">
                    <li class="mainlevel">
                        <a href="/"><strong class="ch">网站首页</strong><br />
                            <span class="en">HOME</span></a>
                    </li>
                    <li id="about" class="mainlevel sub">
                        <a href="/Home/About"><strong class="ch">关于我们</strong><br />
                            <span class="en">ABOUT</span></a>
                        <ul class="sub_nav_01">
                            @foreach (var item in DataHelper.GetCompanyInfos(Qcy.Jshj.Web.Models.CompanyInfoType.About))
                            {
                                if (item.Id == 3)
                                {
                                    continue;
                                }
                                <text>
                                <li><a href="/Home/About/@item.Id" >@item.Title</a></li>
                                </text>
                            }
                        </ul>
                    </li>
                    <li id="products" class="mainlevel sub">
                        <a href="/Home/Products"><strong class="ch">产品展示</strong><br />
                            <span class="en">PRODUCTS</span></a>
                        <ul class="sub_nav_01">
                            @foreach (var item in DataHelper.GetProductCategories())
                            {
                                <text>
                                <li><a href="/Home/Products/@item.Id" >@item.Title</a></li>
                                </text>
                            }
                        </ul>
                    </li>
                    <li id="quality" class="mainlevel sub">
                        <a href="/Home/Quality"><strong class="ch">质量控制</strong><br />
                            <span class="en">QUALITY</span></a>
                        <ul class="sub_nav_01">
                            @foreach (var item in DataHelper.GetCompanyInfos(Qcy.Jshj.Web.Models.CompanyInfoType.Quality))
                            {
                                <text>
                                <li><a href="/Home/Quality/@item.Id" >@item.Title</a></li>
                                </text>
                            }
                        </ul>
                    </li>
                    <li id="service" class="mainlevel">
                        <a href="/Home/Service"><strong class="ch">服务支持</strong><br />
                            <span class="en">SERVICE</span></a>
                    </li>
                    <li id="order" class="mainlevel sub">
                        <a href="/Home/Order"><strong class="ch">联系订购</strong><br />
                            <span class="en">ORDER</span></a>
                        <ul id="sub_last" class="sub_nav_01">
                            @foreach (var item in DataHelper.GetCompanyInfos(Qcy.Jshj.Web.Models.CompanyInfoType.Order))
                            {
                                <li><a href="/Home/Order/@item.Id">@item.Title</a></li>
                            }
                            <li><a href="/Home/OnLineOrder">@ApplicationTag.GetTag("Inquiry")</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
        <div class="clear"></div>
        <div class="content">
            @RenderBody()
            <div class="clear"></div>
        </div>
    </div>
    @Html.Partial("_FootPartial")
    <script>
        var action = "@action".toLowerCase();
        if (action.indexOf("order") >= 0)
            action = "0rder";
        $("#" + action + "").addClass("select");
    </script>
</body>
</html>
